home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: CManager_URL.rexx 1.0 (16.10.98) by Simone Tellini
- */
-
-
- options results /* enable return codes */
-
- if (left(address(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
-
- address 'GOLDED.1'
-
- 'LOCK CURRENT RELEASE=4' /* lock GUI, gain access */
-
- if (RC ~= 0) then
-
- exit
-
- options failat 6 /* ignore warnings */
-
- signal on syntax /* ensure clean exit */
-
- /* ---------------------- INSERT YOUR CODE HERE ---------------------- */
-
- if ~show("L","rxcmanager.library") then
- if ~addlib("rxcmanager.library",0,-30) then do
- say "no rxcmanager.library"
- exit
- end
-
- 'REQUEST STRING TITLE="Enter the pattern to search for:" VAR=K'
-
- patt.Name = k
- patt.WWW = k
- patt.Comment = k
-
- num = CMFind("USER WWW FTP","REC","PATT",1)
-
- if num > 0 then do
-
- do i=0 to num-1
-
- if rec.i.Type = 'FTP' then do
-
- if rec.i.FTP ~= '' then
- 'TEXT T="'rec.i.FTP'"'
-
- end
- else if rec.i.WWW ~= '' then
- 'TEXT T="'rec.i.WWW'"'
-
- 'CR'
- 'FIRST'
- end
- end
-
- /* ------------------------- END OF YOUR CODE ------------------------ */
-
- 'UNLOCK' /* unlock GUI */
-
- exit
-
- SYNTAX:
-
- SAY "Error in line" SIGL ":" ERRORTEXT(RC)
-
- 'UNLOCK'
-